package mil.af.amc.adpetracker.service;

import mil.af.amc.adpetracker.model.MaintenanceEntry;

import java.util.List;
import java.util.Map;

/**
 * Service for creating Maintenance Entries attached to an EquipmentItem
 *
 * @author TSgt Jason Ferguson
 */
public interface MaintenanceService {

    /**
     * Get All Maintenance Entries
     * @return
     */
    List<MaintenanceEntry> getAll();

    /**
     * Get all maintenance entries for a given serial number
     * @param serial
     * @return
     */
    List<MaintenanceEntry> getBySerialNumber(String serial);

    /**
     * Create a maintenance entry based on a Map of values passed in
     * @param entryMap
     * @return
     */
    MaintenanceEntry create(Map entryMap);
}
